﻿using Sample.Novel.Domain.Books.Entites;
using Sample.Novel.EntityFrameworkCore.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Threading;

namespace Sample.Novel.EntityFrameworkCore.Extensions
{
    public static class BookRepositoryExtensions
    {
        public static Chapter FindChapterById(this BookRepository repository,Guid id,bool include)
        {
            return AsyncHelper.RunSync(()=>repository.FindCharpterByIdAsync(id,include));
        }
    }
}
